/* =========================
   ACADEMICS PAGE STYLES
========================= */

/* Hero Section */
.academics-hero {
  min-height: 95vh;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("academics-hero.jpg") center / cover no-repeat;
}

.academics-hero h1 {
  letter-spacing: -0.5px;
}

/* Director of Studies */
.gradient-section {
  background: linear-gradient(135deg, #f0f8ff, #ffffff);
}

/* Curriculum cards */
.curriculum-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.curriculum-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Department cards */
.department-card img {
  height: 180px;
  object-fit: cover;
}

.department-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.department-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* UNEB & A-Level tables */
table {
  margin-bottom: 0;
}


/* =========================
   ACADEMICS – MOBILE FIXES
========================= */
@media (max-width: 991px) {

  /* Hero text scaling */
  .academics-hero h1 {
    font-size: 2rem;
  }

  .academics-hero p {
    font-size: 1rem;
  }

  .academics-hero .btn {
    width: 100%;
  }

  /* Director image */
  .gradient-section img {
    width: 200px;
    height: 200px;
  }

  /* Curriculum spacing */
  .curriculum-card {
    margin-bottom: 1rem;
  }

  /* Tables scroll safely */
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {

  /* Hero height */
  .academics-hero {
    min-height: 90vh;
  }

  /* Section headings */
  h2 {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1rem;
  }

  /* Department cards */
  .department-card img {
    height: 160px;
  }

  /* CTA buttons */
  .btn-lg {
    width: 100%;
    font-size: 1rem;
  }
}
